Added plural forms handling correction to notification message
authorPablo Ariño Muñoz <progpabarino@gmail.com>
Thu, 20 Feb 2025 19:33:27 +0000 (20:33 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 24 Feb 2025 07:30:31 +0000 (07:30 +0000)
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
src/gui/tray/usermodel.cpp

index 01260f275c1de805ba3cf9387bd1ab5c1ff073d2..1f0020184bd0af9ca408ca41a30a69d8c2534c1b 100644 (file)
@@ -174,7 +174,7 @@ void User::showDesktopNotification(const Activity &activity)
 
 void User::showDesktopNotification(const ActivityList &activityList)
 {
-    const auto subject = tr("%1 notifications").arg(activityList.count());
+    const auto subject = tr("%n notification(s)", "", activityList.count());
     const auto notificationId = -static_cast<int>(qHash(subject));
 
     if (!canShowNotification(notificationId)) {